<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Home</title>
  </head>
  
  <body>
  <s:if test="hasFieldErrors()">
  	<s:iterator value="fieldErrors">
  		<s:property value="value[0]"/>
  	</s:iterator>
  </s:if>
   <form action="<%=path %>/myhello/hello">
   	id：<input type="text" name="id" ><br>
   	 姓名：<s:textfield name="name"></s:textfield><br>
   	 ${param['name'] }<br>
   	 #parameters中的数据要从浏览器中传递过来，在Action直接添加无效<br>
   	 请求参数中的账号:<s:property value="#parameters.p1"/><br>
   	 
   	 会话属性中的账号：<s:property value="#session.p2"/><br>
   	 #arrt; #application, #request<br>
   	 静态属性值：<s:property value="@com.kaoshi.myweb.webstruts.service.MyStatic@StaticTest"/>
   	 静态方法:<s:property value="@com.kaoshi.myweb.webstruts.service.MyStatic@Test('test')"/><br>
   	 构建数组
   	 <s:property value="{1,2,3}"/><br>
   	 构建map
   	 <s:property value="#{'one':'aa', 'teo':'bb' }"/>
   	  <%--<input type="text" name="name" >--%>
   	 <input type="submit" value="提交">
   </form> 
   
   </body>
</html>
